package cn.darkhorse.alarm.mapper;

import cn.darkhorse.alarm.dto.AlarmSettingPonitTablesDTO;
import cn.darkhorse.alarm.pojo.AlarmParameterSettings;
import cn.darkhorse.device.pojo.IotPointTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author maoguanjun
 * @since 2023-04-07
 */
public interface ParameterSettingsMapper extends BaseMapper<AlarmParameterSettings> {

	/**
	 * 批量保存
	 * @param addList
	 */
	void batchInsert(@Param("addList") List<AlarmParameterSettings> addList);

	/**
	 * 获取已配置的点表信息
	 * @param pointTableIds
	 * @param deviceId
	 * @param pointName
	 * @return
	 */
	List<AlarmSettingPonitTablesDTO> settingPonitTables(@Param("pointTableIds") Set<Long> pointTableIds,
														@Param("deviceId") Long deviceId,@Param("pointName") String pointName ,
														@Param("childIds") List<Long> childIds);



}
